package com.black.platform.role.service.handler;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.black.common.web.PageQuery;
import com.black.platform.role.po.Role;
import com.black.platform.role.vo.RolePermissionVo;
import com.black.platform.role.vo.RoleTreeVo;

import java.util.List;

public interface RoleHandlerService {

    List<Role> getUserAllRoleByUserId(Long userId);

    IPage<Role> search(PageQuery<Role> searchVo);

    RolePermissionVo getRolePermissionVoByRoleId(Long roleId);

    boolean saveOrUpdate(RolePermissionVo rolePermissionVo);

    List<RoleTreeVo> getAllRoleTree(String systemCode);
}
